﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Sys
{
    [Table("SysDeviceUnlock")]
    public class SysDeviceUnlock : BaseEntity
    {
        /// <summary>
        /// 解锁密钥
        /// </summary>
        [Key]
        [Column(TypeName = "varchar(20)")]
        public string KeyCode { get; set; }

        /// <summary>
        /// 解锁秒数
        /// </summary>
        public int Seconds { get; set; }

        /// <summary>
        /// 解锁的设备ID
        /// </summary>
        [Column(TypeName = "uuid")]
        public Guid? DeviceGuid { get; set; }

        /// <summary>
        /// 解锁加密狗编号
        /// </summary>
        [Column(TypeName = "varchar(255)")]
        public string USBKeyNO { get; set; }

        /// <summary>
        /// 解锁加密狗类型
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string USBKeyType { get; set; }

        /// <summary>
        /// 解锁的用户ID
        /// </summary>
        [Column(TypeName = "uuid")]
        public Guid? UnlockUserGuid { get; set; }

        /// <summary>
        /// 解锁的时间
        /// </summary>
        [Column(TypeName = "timestamp(0)")]
        public DateTime? UnlockTime { get; set; }
    }
}